#!/usr/bin/python
# -*- coding: UTF-8 -*-
"""
产生随机文件
"""
if __name__ == '__main__':
    with open('test.log', 'w') as f:
        for line in range(10000000):
            f.write('This is a test line message, the line num is %s.\n' % line)